/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package presentation.view.menu;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import presentation.view.MainFrame;

/**
 *
 * @author Owner
 */
public class MenuAjuda extends JMenuBar implements ActionListener {
    private JMenu ajuda;

    private JMenuItem disciplina;
    private JMenuItem alunos;

    public MenuAjuda(){
	ajuda = new JMenu("AJUDA");

	disciplina = new JMenuItem("Sobre a Disciplina");
	disciplina.addActionListener(this);
	ajuda.add(disciplina);

	alunos = new JMenuItem("Sobre os desenvolvedores");
	alunos.addActionListener(this);
	ajuda.add(alunos);

	this.add(ajuda);
    }

    public void actionPerformed(ActionEvent e) {
	JMenuItem source = (JMenuItem)(e.getSource());
	if( source == disciplina ){
	    
	} else if( source == alunos ){
	    
	}
    }
}
